[member]
ETCD_NAME="etcd{{ ansible_all_ipv4_addresses[0].replace('.','') }}"
ETCD_DATA_DIR="{{ linux_work_dir }}/etcd/{{ etcd_data_dir }}"
#ETCD_SNAPSHOT_COUNTER="10000"
#ETCD_HEARTBEAT_INTERVAL="100"
#ETCD_ELECTION_TIMEOUT="1000"
ETCD_LISTEN_PEER_URLS="https://{{ ansible_all_ipv4_addresses[0] }}:2380"
ETCD_LISTEN_CLIENT_URLS="https://{{ ansible_all_ipv4_addresses[0] }}:2379,https://127.0.0.1:2379"
#ETCD_MAX_SNAPSHOTS="5"
#ETCD_MAX_WALS="5"
#ETCD_CORS=""
#
[cluster]
ETCD_INITIAL_ADVERTISE_PEER_URLS="https://{{ ansible_all_ipv4_addresses[0] }}:2380"
# if you use different ETCD_NAME (e.g. test),
# set ETCD_INITIAL_CLUSTER value for this name, i.e. "test=https://..."
{% if groups['etcd']|count > 1 -%}
ETCD_INITIAL_CLUSTER="{% for node in groups["etcd"] %}etcd{{ node.replace('.','') }}=https://{{ node }}:2380{%- if not loop.last -%},{%- endif -%}{% endfor %}"
ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
{% endif %}
ETCD_ADVERTISE_CLIENT_URLS="https://{{ ansible_all_ipv4_addresses[0] }}:2379"
#ETCD_DISCOVERY=""
#ETCD_DISCOVERY_SRV=""
#ETCD_DISCOVERY_FALLBACK="proxy"
#ETCD_DISCOVERY_PROXY=""
#
#[proxy]
#ETCD_PROXY="off"
#
[security]
CLIENT_CERT_AUTH="true"
ETCD_CA_FILE="/etc/ssl/etcd/ca.pem"
ETCD_CERT_FILE="/etc/ssl/etcd/etcd.pem"
ETCD_KEY_FILE="/etc/ssl/etcd/etcd-key.pem"
PEER_CLIENT_CERT_AUTH="true"
ETCD_PEER_CA_FILE="/etc/ssl/etcd/ca.pem"
ETCD_PEER_CERT_FILE="/etc/ssl/etcd/etcd.pem"
ETCD_PEER_KEY_FILE="/etc/ssl/etcd/etcd-key.pem"